package lancooUpLoad;

import com.example.lancooznbk.service.HttpPostServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;

import retrofit2.Retrofit;
import rx.Observable;

/**
 * Created by Administrator on 2017/9/5/005.
 */

public class SaveZsdParam extends BaseApi {


    private SaveLearnedZSD mSaveLearnedZSD;

    public SaveLearnedZSD getSaveLearnedZsd() {
        return mSaveLearnedZSD;
    }

    public void setSaveLearnedZsd(SaveLearnedZSD SaveLearnedZSD) {
        this.mSaveLearnedZSD = SaveLearnedZSD;
    }

    public SaveZsdParam(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostServer httpPostServer = retrofit.create(HttpPostServer.class);

        return httpPostServer.saveLearnedZsd(mSaveLearnedZSD);
    }
}
